package com.csii.ssm.dto;

import com.csii.ssm.model.Order;
import com.csii.ssm.model.User;

/**
 * Created by Charis on 2016/8/25.
 */
public class PainObj {

    /**
     * 授权用户对象
     */
    private User user;

    /**
     * 支付订单信息
     */
    private Order order;

    /**
     * 交易码：即虹领巾商城需要直接跳转到支付前置的功能映射
     */
    private String transcode;

    public PainObj() {
    }

    public PainObj(User user, Order order, String transcode) {
        this.user = user;
        this.order = order;
        this.transcode = transcode;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getTranscode() {
        return transcode;
    }

    public void setTranscode(String transcode) {
        this.transcode = transcode;
    }

    @Override
    public String toString() {
        return "PainObj{" +
                "user=" + user +
                ", order=" + order +
                ", transcode='" + transcode + '\'' +
                '}';
    }
}
